package com.example.kuaizu.pojo;

import kuaizu.common.groups.Delect;
import kuaizu.common.groups.Update;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class UpdateUserInfoParam {
    @NotNull(groups = Update.class)
    @Range(min = 1,message = "学校Id不正确")
    private Integer schoolId;
    @NotNull(groups = Update.class)
    @Range(min = 1,message = "专业Id不正确")
    private Integer majorId;
    @NotNull(message = "openId不能为空" ,groups = Delect.class)
    private String openId;
}
